/**
 * author      : dormi330
 * date        : 2018/6/26
 * project     : mybatis
 * description : adaptor 会员服务
 */

package org.wzq.learn.adaptor;

import org.springframework.stereotype.Service;

@Service
public class MemberService {

    private static Member mockMember;
    private static MemberAddress address;

    static {
        mockMember = new Member();
        mockMember.setId(IdService.MEMBER_ID);

        address = new MemberAddress();
        address.setId(IdService.ADDRESS_ID);
        address.setMemberId(mockMember.getId());
        address.setProviceName("广东");
        address.setCityName("广州");
        address.setDistrictName("天河区");
        address.setStreetName("天园街道");
        address.setDetailAddress("棠下村999号");
        address.setPostCode("123456");
        address.setReceiverName("吴中勤");
        address.setReceiverPhone("18612341234");
    }


    public Member memberOfId(String tenantCoid, String memberId) {
        return mockMember;
    }

    public MemberAddress addressOfMember(String tenantId, String memberId, String addressId) {
        return address;
    }
}
